/*
package org.itboys.core.controller.front;

import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;
import org.itboys.commons.CommonConstants;
import org.itboys.core.service.mongo.front.SundayFrontFeedbackService;
import org.itboys.core.util.ResponseMessage;
import org.itboys.framework.spring.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

*/
/**
 * Auther: 罗尧坤
 * Date: 2018/8/1
 * Description: 小程序: 我要反馈
 *//*


@Controller
@RequestMapping("/sunday/small/feedback")
@Api(value = "feedback",description = "我要反馈")
public class SundayFrontFeedbackController extends BaseController {
    @Autowired
    private SundayFrontFeedbackService feedbackService;

    @RequestMapping(value="/save", method= RequestMethod.POST)
    @ApiOperation(value="【用户端】保存用户反馈信息")
    public void save(
            HttpServletRequest request,HttpServletResponse response,
            @ApiParam(required=true, name="memberId", value="用户id")
            @RequestParam(value = "memberId", required = true)Long memberId
            ,
            @ApiParam(required=true, name="memberName", value="用户名")
            @RequestParam(value = "memberName", required = true)String memberName
            ,
            @ApiParam(required=true, name="advice", value="详细意见")
            @RequestParam(value = "advice", required = true)String advice
            ,
            @ApiParam(required=true, name="tags", value="反馈信息标签")
            @RequestParam(value = "tags", required = true)String tags
    ){
        try{
            feedbackService.save(
                    memberId,
                    memberName,
                    advice,
                    tags
            );
            ResponseMessage.success();
        }catch (Exception e){
            String msg = CommonConstants.ERROMSG;
            Integer code= CommonConstants.FAIL_CODE;
            if(e.getClass().getSimpleName().equalsIgnoreCase("ErrorException")){
                msg=e.getMessage();
                //token已过期
            }else  if(e.getClass().getSimpleName().equalsIgnoreCase("TokenException")){
                code= CommonConstants.TOKEN_CODE;
                msg= CommonConstants.TOKENMSG;
            }else{
                logger.error("/sunday/small/feedback/save----e="+e.getMessage());
            }
            e.printStackTrace();
            ResponseMessage.error(code,msg);
        }
    }

}
*/
